package com.xuan.chatroom.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message {
    // 消息id   sessionId  fromId   fromName   content   postTime
    private Integer messageId;
    private Integer sessionId;      // 表示消息属于哪个会话
    private Integer fromId;         // 该消息的发送者的id
    private String fromName;
    private String content;
    private Date postTime;          // 发送时间
}
